package com.bizark.rpc.api.share_serv.warehouse.region;

import com.bizark.rpc.api.bean.base.BaseListResponse;
import com.bizark.rpc.api.bean.base.BaseQueryRequest;
import com.bizark.rpc.api.bean.base.BaseResponse;
import com.bizark.rpc.api.bean.region.Region;
import com.bizark.rpc.api.exception.RpcException;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * Created by tangshijun on 2017/3/15.
 */
public interface RegionProvider {

    BaseResponse<Region> getRegionById(String id);

    BaseListResponse<Region> getRegions();

    BaseResponse<Region>  addRegion(Region region) throws RpcException;

    BaseResponse<Region> updateRegion(Region region) throws RpcException;

    int deleteRegionById(String id) throws Exception;

    BaseListResponse<Region>  getPage(BaseQueryRequest request);



}
